package com.atcc.test.domain;

/**
 * 错误代码枚举类
 *@author wangzhewnei
 */
public enum ResultCode {
	
	/**请求成功 */
	SUCCESS(200, "成功"),
	
	/** 参数错误 1001-1999 */
	PARAM_IS_INVALID(1001,"参数无效"),
	PARAM_IS_BLANK(1002,"参数为空"),
	PARAM_IS_BIND_ERROR(1003,"参数类型错误"),
	PARAM_IS_COMPLETE(1004,"参数缺失"),
	/** 服务器错误 5001-5999 */
	
	SERVICE_ERROR(5001,"服务器宕机");
	
    private Integer code;

    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
    
    

}
